package com.spring.dao.impl;

import com.spring.dao.interfaces.StudentDao;
import com.spring.domain.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

/**
 * @ClassName StudentDaoImplForMySql
 * @Description TODO
 * @Author ZhaoKai
 * @Date 2022-02-1610:27
 * @Version 1.0
 **/
@Repository("studentDaoImplForMySql")
public class StudentDaoImplForMySql implements StudentDao {
    @Autowired
    @Qualifier("myStudent")
    private Student student;

    @Override
    public void insert() {
        System.out.println("student:" + student + "Insert to MySQL;");
    }
}
